#include <vector> 
namespace alpha_cplusplus_MismatchedIterator {
    void bad_insert3(std::vector<int>& v1, std::vector<int>& v2) {
        v2.insert(v1.cbegin(), v2.cbegin(), v2.cend()); // warn: container accessed
                                                        //       using foreign
                                                        //       iterator argument
        v1.insert(v1.cbegin(), v1.cbegin(), v2.cend()); // warn: iterators of
                                                        //       different containers
                                                        //       used where the same
                                                        //       container is
                                                        //       expected
        v1.insert(v1.cbegin(), v2.cbegin(), v1.cend()); // warn: iterators of
                                                        //       different containers
                                                        //       used where the same
                                                        //       container is
                                                        //       expected
    }
}